{% extends "forum/frame.html" %}
{% load string %}
{% load i18n %} 

{% block content %}

  <div id="forum_nav">
  <a class="forum_link" href="{% url ytcommunity.forum.view.board.list %}">{% trans 'Homepage' %}</a>
  
  {% for board in board.get_board_path %}
  - <a class="forum_link" href="{% url ytcommunity.forum.view.board.display name=board.get_board_key %}">{{ board.title|escape }}</a>
  {% endfor %}

  {% if board and not board.dummy and auth.add %}
  - <a class="forum_link" href="{% url ytcommunity.forum.view.post.add name=board.get_board_key %}">{% trans 'Post' %}</a> 
  {% endif %}
  
  </div>


<form action="{% url ytcommunity.forum.view.post.add name=board.get_board_key %}" method="POST">
    <div class="fieldWrapper">
        {{ form.title.errors }}
        <label for="id_title">{% trans "Title" %}:</label><br>
        {{ form.title }}
    </div>
    <div class="fieldWrapper">
        {{ form.content.errors }}
        <label for="id_content">{% trans "Content" %}:</label><br>
        {{ form.content }}
    </div>
    <p><input type="submit" class="button" value="{% trans 'Submit' %}" /></p>
</form>
  
{% endblock %}
